/**
 * 
 */
package com.james.wee.shuangseqiu.bo;

import com.james.wee.shuangseqiu.db.DB;

/**
 * @author Administrator
 * 
 */
public class Cardno implements IDBBo {
	private int id;
	private String zumaid;
	private String n_1;
	private String n_2;
	private String n_3;
	private String n_4;
	private String n_5;
	private String n_6;
	private String n_7;
	private String n_8;
	private String n_9;
	private String n_10;
	private String n_11;
	private String n_12;
	private String n_13;
	private String n_14;
	private String n_15;
	private String n_16;
	private String n_17;
	private String n_18;
	private String n_19;
	private String n_20;
	private String n_21;
	private String n_22;
	private String n_23;
	private String n_24;
	private String n_25;
	private String n_26;
	private String n_27;
	private String n_28;
	private String n_29;
	private String n_30;
	private String n_31;
	private String n_32;
	private String n_33;

	public String getZumaid() {
		return zumaid;
	}

	public void setZumaid(String zumaid) {
		this.zumaid = zumaid;
	}

	public String getN_1() {
		return n_1;
	}

	public void setN_1(String n_1) {
		this.n_1 = n_1;
	}

	public String getN_2() {
		return n_2;
	}

	public void setN_2(String n_2) {
		this.n_2 = n_2;
	}

	public String getN_3() {
		return n_3;
	}

	public void setN_3(String n_3) {
		this.n_3 = n_3;
	}

	public String getN_4() {
		return n_4;
	}

	public void setN_4(String n_4) {
		this.n_4 = n_4;
	}

	public String getN_5() {
		return n_5;
	}

	public void setN_5(String n_5) {
		this.n_5 = n_5;
	}

	public String getN_6() {
		return n_6;
	}

	public void setN_6(String n_6) {
		this.n_6 = n_6;
	}

	public String getN_7() {
		return n_7;
	}

	public void setN_7(String n_7) {
		this.n_7 = n_7;
	}

	public String getN_8() {
		return n_8;
	}

	public void setN_8(String n_8) {
		this.n_8 = n_8;
	}

	public String getN_9() {
		return n_9;
	}

	public void setN_9(String n_9) {
		this.n_9 = n_9;
	}

	public String getN_10() {
		return n_10;
	}

	public void setN_10(String n_10) {
		this.n_10 = n_10;
	}

	public String getN_11() {
		return n_11;
	}

	public void setN_11(String n_11) {
		this.n_11 = n_11;
	}

	public String getN_12() {
		return n_12;
	}

	public void setN_12(String n_12) {
		this.n_12 = n_12;
	}

	public String getN_13() {
		return n_13;
	}

	public void setN_13(String n_13) {
		this.n_13 = n_13;
	}

	public String getN_14() {
		return n_14;
	}

	public void setN_14(String n_14) {
		this.n_14 = n_14;
	}

	public String getN_15() {
		return n_15;
	}

	public void setN_15(String n_15) {
		this.n_15 = n_15;
	}

	public String getN_16() {
		return n_16;
	}

	public void setN_16(String n_16) {
		this.n_16 = n_16;
	}

	public String getN_17() {
		return n_17;
	}

	public void setN_17(String n_17) {
		this.n_17 = n_17;
	}

	public String getN_18() {
		return n_18;
	}

	public void setN_18(String n_18) {
		this.n_18 = n_18;
	}

	public String getN_19() {
		return n_19;
	}

	public void setN_19(String n_19) {
		this.n_19 = n_19;
	}

	public String getN_20() {
		return n_20;
	}

	public void setN_20(String n_20) {
		this.n_20 = n_20;
	}

	public String getN_21() {
		return n_21;
	}

	public void setN_21(String n_21) {
		this.n_21 = n_21;
	}

	public String getN_22() {
		return n_22;
	}

	public void setN_22(String n_22) {
		this.n_22 = n_22;
	}

	public String getN_23() {
		return n_23;
	}

	public void setN_23(String n_23) {
		this.n_23 = n_23;
	}

	public String getN_24() {
		return n_24;
	}

	public void setN_24(String n_24) {
		this.n_24 = n_24;
	}

	public String getN_25() {
		return n_25;
	}

	public void setN_25(String n_25) {
		this.n_25 = n_25;
	}

	public String getN_26() {
		return n_26;
	}

	public void setN_26(String n_26) {
		this.n_26 = n_26;
	}

	public String getN_27() {
		return n_27;
	}

	public void setN_27(String n_27) {
		this.n_27 = n_27;
	}

	public String getN_28() {
		return n_28;
	}

	public void setN_28(String n_28) {
		this.n_28 = n_28;
	}

	public String getN_29() {
		return n_29;
	}

	public void setN_29(String n_29) {
		this.n_29 = n_29;
	}

	public String getN_30() {
		return n_30;
	}

	public void setN_30(String n_30) {
		this.n_30 = n_30;
	}

	public String getN_31() {
		return n_31;
	}

	public void setN_31(String n_31) {
		this.n_31 = n_31;
	}

	public String getN_32() {
		return n_32;
	}

	public void setN_32(String n_32) {
		this.n_32 = n_32;
	}

	public String getN_33() {
		return n_33;
	}

	public void setN_33(String n_33) {
		this.n_33 = n_33;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.james.wee.shuangseqiu.bo.IDBBo#setId(int)
	 */
	@Override
	public void setId(int id) {
		this.id = id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.james.wee.shuangseqiu.bo.IDBBo#getId()
	 */
	@Override
	public int getId() {
		return id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.james.wee.shuangseqiu.bo.IDBBo#insertSql()
	 */
	@Override
	public String insertSql() {
		return null;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.james.wee.shuangseqiu.bo.IDBBo#updateSql()
	 */
	@Override
	public String updateSql() {
		String tmp = null;
		if(this.id<10)
			tmp="0"+this.id;
		else
			tmp=""+this.id;
		return "update cardno set zumaid='"+tmp+"' where id="+this.id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.james.wee.shuangseqiu.bo.IDBBo#getIdSql()
	 */
	@Override
	public String getIdSql() {
		return null;
	}

	public static void main(String[] args) {
		for(int i=1;i<30;i++){
			Cardno no = new Cardno();
			no.setId(i);
			try {
				DB.getInstance().update(no);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
